package com.hzhr.iot.device.model.collectDevice_statusInfo;


import com.hzhr.iot.core.annotation.CygModel;
import com.hzhr.iot.core.annotation.CygProperty;
import com.hzhr.iot.device.entity.CollectDeviceEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "CollectDevice_StatusInfoModel", description = "采集设备的状态信息模型")
@CygModel(entity = CollectDeviceEntity.class)
public class CollectDevice_StatusInfoModel {
    @ApiModelProperty(value = "说明 : 编号", required = true)
    @CygProperty(show = "", entityProp = "id")
    private Integer id;

    @ApiModelProperty(value = "说明 : 当前读数(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "currentReading")
    private Double currentReading;
    @ApiModelProperty(value = "说明 : 当前阀门状态代码(show_info=true时展示; 关联: device_service.options.code, typeName = 'VALVE_STATUS')")
    @CygProperty(show = "_show_info", entityProp = "currentValveStatusCode")
    private String currentValveStatusCode;
    @ApiModelProperty(value = "说明 : 当前电池电压(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "currentCellVoltage")
    private Float currentCellVoltage;
    @ApiModelProperty(value = "说明 : 最近采集时间(show_info=true时展示; 毫秒级时间戳)")
    @CygProperty(show = "_show_info", entityProp = "lastCollectTime")
    private Long lastCollectTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCurrentValveStatusCode() {
        return currentValveStatusCode;
    }

    public void setCurrentValveStatusCode(String currentValveStatusCode) {
        this.currentValveStatusCode = currentValveStatusCode;
    }

    public Double getCurrentReading() {
        return currentReading;
    }

    public void setCurrentReading(Double currentReading) {
        this.currentReading = currentReading;
    }

    public Float getCurrentCellVoltage() {
        return currentCellVoltage;
    }

    public void setCurrentCellVoltage(Float currentCellVoltage) {
        this.currentCellVoltage = currentCellVoltage;
    }

    public Long getLastCollectTime() {
        return lastCollectTime;
    }

    public void setLastCollectTime(Long lastCollectTime) {
        this.lastCollectTime = lastCollectTime;
    }
}